package com.example.cash.craft.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.cash.craft.pojo.entity.Category;
import com.example.cash.craft.pojo.vo.CategoryVO;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {

    int countByName(String name);

    CategoryVO selectById(Long id);

    List<CategoryVO> listAll();

}
